package com.dhc.appbusinessfrm.task;

/**
 * Created by xy on 2015/6/18.
 */
public interface PriorityTask extends CallableTask {

    /**
     *  normal priority task
     */
    public static final int PRIORITY_NORMAL=0;

    /**
     * advanced priority task
     */
    public static final int PRIORITY_ADVANCED=1;

    /**
     * get task priority value
     * @return
     */
    public abstract  int getPriority();

    /**
     * set task priority value
     * @param priority
     */
    public abstract PriorityTask priority(int priority);
}
